package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_roledic table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_roledic"
 */

public abstract class BaseTJesRoledic  implements Serializable {

	public static String REF = "TJesRoledic";
	public static String PROP_ROLEID = "Roleid";
	public static String PROP_KEYTYPE = "Keytype";
	public static String PROP_DICCODE = "Diccode";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTJesRoledic () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesRoledic (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String roleid;
	private java.lang.String diccode;
	private java.lang.String keytype;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: ROLEID
	 */
	public java.lang.String getRoleid () {
		return roleid;
	}

	/**
	 * Set the value related to the column: ROLEID
	 * @param roleid the ROLEID value
	 */
	public void setRoleid (java.lang.String roleid) {
		this.roleid = roleid;
	}



	/**
	 * Return the value associated with the column: DICCODE
	 */
	public java.lang.String getDiccode () {
		return diccode;
	}

	/**
	 * Set the value related to the column: DICCODE
	 * @param diccode the DICCODE value
	 */
	public void setDiccode (java.lang.String diccode) {
		this.diccode = diccode;
	}



	/**
	 * Return the value associated with the column: KEYTYPE
	 */
	public java.lang.String getKeytype () {
		return keytype;
	}

	/**
	 * Set the value related to the column: KEYTYPE
	 * @param keytype the KEYTYPE value
	 */
	public void setKeytype (java.lang.String keytype) {
		this.keytype = keytype;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesRoledic)) return false;
		else {
			com.lovejes.app.domain.TJesRoledic tJesRoledic = (com.lovejes.app.domain.TJesRoledic) obj;
			if (null == this.getId() || null == tJesRoledic.getId()) return false;
			else return (this.getId().equals(tJesRoledic.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}